<?php
// /nl2br(string $string, bool $use_xhtml = true): string
//将\n 转为<br/>或<br>
$html="foo isn't\n bar";
$newhTML=nl2br($html);
echo $newhTML;